import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData(primaryColor: Colors.green),
      home: _Home(),
    );
  }
}

class _Home extends StatefulWidget {
  const _Home({Key? key}) : super(key: key);

  @override
  __HomeState createState() => __HomeState();
}

class __HomeState extends State<_Home> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: Stack(
          alignment: Alignment.center,
          clipBehavior:Clip.antiAlias ,
          children: [
            Container(
              width: 300,
              height: 300,
              color: Colors.green,
            ),
            Container(
              width: 200,
              height: 200,
              color: Colors.red,
            ),
            Container(
              width: 100,
              height: 100,
              color: Colors.amber,
            ),
            Align(
              alignment: Alignment.centerLeft,
              child:Icon(Icons.clear,color: Colors.red,),
            ),
            Positioned(
              width: 25,
              height: 25,
              child: Icon(Icons.clear),
              left: 87.8,
              top: -12.5,
            ),
          ],
        ),
      ),
    );
  }
}
